﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML>
<!-- saved from url=(0050)http://localhost:8080/HouseRent/manage!list.action -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<TITLE>青鸟租房 - 用户管理</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><LINK 
rel=stylesheet type=text/css href="css/style.css">

<META name=GENERATOR ></HEAD>
<script src="scripts/jquery-1.8.3.js"></script>
<script type="text/javascript">
  
	
//用ajax删除房屋信息的方法      参数:(delThis)


function del(delThis){
	var flag=confirm('确认删除这本书吗？');
	if(flag==true){
		var houseno = $(delThis).parents('tr').attr('houseno');
		$.get('deleteHouse',{houseno:$(delThis).parents('tr').attr('houseno')},function(result){
			$(delThis).parent().parent().parent().remove();
		});
	}	
}

</script>

<BODY>
<DIV id=header class=wrap>
<DIV id=logo><IMG src="images/logo.gif"></DIV>
<DIV class=search><LABEL class="ui-green searchs"><a href="fabu?userno=${user.userno}" title="" >发布房屋信息</a></LABEL> 
<LABEL class=ui-green><INPUT onclick='document.location="login.jsp"' value="退       出" type=button name=search></LABEL> 
</DIV></DIV>
<DIV class="main wrap">
<DIV id=houseArea>
<TABLE class=house-list>
  <TBODY>
  
   
  <c:forEach items="${hlist}" var="h">  
	  <TR class=odd houseno="${h.houseno}">
		    <TD class=house-thumb><SPAN><a href="" target="_blank"><img src="images/${h.hPictrue}" width="100" height="75" alt="details?houseno=${h.houseno}"></A></SPAN></TD>
			    <TD>
			      <DL>
			        <DT><A href="details?houseno=${h.houseno}" target="_blank">${h.hTitle}</A></DT>
			        <DD>${h.county.cName}${h.street.sName},${h.hArea}平米<BR>联系方式：${h.hTel} </DD></DL></TD>
			    <TD class=house-type><LABEL class=ui-green><INPUT onclick='document.location="updateHouseShow?houseno=${h.houseno}"' value="修    改" type=submit name=search></LABEL></TD>
			    <TD class=house-price><LABEL class=ui-green><INPUT value="删    除" type=button name=search onclick="del(this)"></LABEL>
		    </TD>
	    </TR>
  </c:forEach>  
    
    
    
    </TBODY></TABLE></DIV>
<DIV class=pager>
<UL>
  <LI class=current><A id=widget_338868862 
  href="http://localhost:8080/HouseRent/manage!ajaxList.action?number=1" 
  parseContent="true" showError="true" targets="houseArea" 
  ajaxAfterValidation="false" validate="false" 
dojoType="struts:BindAnchor">1</A>
   </LI>
  <LI class=current><A id=widget_1160989910 
  href="http://localhost:8080/HouseRent/manage!ajaxList.action?number=2" 
  parseContent="true" showError="true" targets="houseArea" 
  ajaxAfterValidation="false" validate="false" 
dojoType="struts:BindAnchor">2</A>
   </LI></UL><SPAN class=total>1/2页</SPAN> </DIV></DIV>
<DIV id=footer class=wrap>
<DL>
  <DT>青鸟租房 © 2010 北大青鸟 京ICP证1000001号</DT>
  <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>
